import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import echarts from './views/charts/echarts.vue'
// 下面是我们自己写的页面
import Department from './views/org/Department.vue'
import Employee from './views/org/Employee.vue'
import LoginInfo from './views/system/LoginInfo.vue'
import Shop from './views/org/Shop.vue'
import Product from './views/order/Product.vue'
import Log from './views/system/Log.vue'
import ShopRegister from './views/ShopRegister.vue'
import Dictionary from './views/system/Dictionary'
import SearchMasterMsgPending from './views/pet/SearchMasterMsgPending'
import SearchMasterMsgProcessed from './views/pet/SearchMasterMsgProcessed'
import Pet from './views/pet/Pet'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        leaf: true,
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: '统计报表' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '组织机构',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dept', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/permission', component: Page4, name: '权限管理' },
            { path: '/logininfo', component: LoginInfo, name: '登陆信息' },
            { path: '/log', component: Log, name: '日志管理' },
            { path: '/dictionary', component: Dictionary, name: '数据字典' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单管理',
        iconCls: 'fa fa-address-card',
        children: [
            { path: '/product', component: Product, name: '服务管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/pending', component: SearchMasterMsgPending, name: '待处理寻主消息' },
            { path: '/processed', component: SearchMasterMsgProcessed, name: '已处理寻主消息' },
            { path: '/pet', component: Pet, name: '宠物管理' },
            { path: '/petType', component: SearchMasterMsgPending, name: '宠物类型' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;